<?php 
//print_r($HttpResult);
if(1==2){$HttpResult = new HttpResult();}
	
	  $HttpContentResult = $HttpResult->getHttpContentResult();
//	  Debug::print_r($HttpResult);
	  //$lang = Config::DEFAULT_LOCALE;
		$head = new HtmlHeader($HttpContentResult->getHeader());
		$head->addCSS('reset');
		$head->addCSS('print','', 'print');
		$head->addCSS('ie',  'css/ie', 'print',true);
		
		$head->addCSS('forum',"css/admin");		
		
		//<!-- PROGRAMACAO JS | JQUERY  -->
		$head->addJS(array('jquery', 'masked'));
		
	    //MENU DROPDOWN
	    $head->addJS('Menu principal','js/menu/ddsmoothmenu');
	    $head->addCSS('Menu CSS','js/menu/ddsmoothmenu');
	    
	    //TINYMCE
	    $head->addJS('tinymce','js/tinymce/jquery.tinymce');
	  	
		//<!-- JQUERY UI  -->
		$head->addJS('UI', 'js/UI/js/jquery-ui-1.8.6.custom.min');
		$head->addCSS('UI','js/UI/css/smoothness/jquery-ui-1.8.6.custom');

		//<!-- VTIP  -->
		$head->addJS('vtip', 'js/vtip/vtip');
		$head->addCSS('vtip', 'js/vtip/vtip');
		
		//<!-- TABLE SORTER -->
		$head->addJS('tablesorter', 'js/tablesorter/tablesorter');
		$head->addCSS('tablesorter', 'js/tablesorter/tablesorter');
		
		
    
    //<!-- PROGRAMACAO JS | JQUERY  -->
//    $head->addJS(array('utils/validation', '/admin/user/insert', 'admin_select','admin'));
    $head->addJS(array('utils/validation', 'admin/user/insert', 'admin_select','admin'));
    
		$header_html = $head->show(TRUE);
$header_html = str_replace(array("democrart", "democrArt", "Democrart", "DemocrArt"), array("expressaoartistica", "Expressão Artística", "Expressão Artística", "Expressão Artística"), $header_html);
echo $header_html;
?>
 
<body>

<div id="main">
     <?php include Config::getFolderView("parts/admin/header.php"); ?>
      
	  <div id="main_content">
	  
	  <div id="msgBox">
			<?php 
			
					//se for setado o return_result_vo ele pega a array de messages e exibe, independende se Ã© erro ou sucesso
					if(isset($HttpContentResult->return_result_vo) && count($HttpContentResult->return_result_vo->array_messages) > 0){
				    	foreach($HttpContentResult->return_result_vo->array_messages as $system_message){
			//	    		$system_message = $formData->translateMessage($system_message);
							?>
							<p class="success"><?php echo $system_message; ?></p>
							<?php
				    	}
				    }
				    $thumb = "";
				    if(isset($HttpContentResult->color_vo->array_image_std_obj) && count($HttpContentResult->color_vo->array_image_std_obj)>0){
				    	$thumb = Config::getRootPath("image/get_image/image_id.".$HttpContentResult->color_vo->array_image_std_obj[0]->id."/max_width.100/max_height.100");
				    }
//				    echo $thumb;
			?>	  
	  </div>
	  			
		 <div id="box_right">
			<h1>Editar Cor</h1>
			
			<div style="clear:both">
			<form name="frmCadastro" id="frmCadastro" class="frm" method="post" action="<?php echo Config::getRootPath("admin/color/update/id.".$HttpContentResult->color_vo->id); ?>" enctype="multipart/form-data">
		
				<ul>
					<li class="separador">DADOS DA COR</li>
					
					<li>
						<label for="nome">Nome:</label>
						<input type="text" size="40" name="name" id="nome" value="<?php echo $HttpContentResult->color_vo->name; ?>"/><label class="info">*</label>
					</li>
	
					<li class="detalheImagem">
						<img id="enviar_foto_image" src="<?php echo $thumb;?>" alt="imagem" title="<?php echo $HttpContentResult->color_vo->name; ?>" class="imgObraDetalhe" />
						<span id="enviar_trocar_message" class="zoom" onclick="$('#enviar_foto_image').css('display', 'none');$(this).css('display', 'none');$('#enviar_foto').css('display', 'block');">trocar/enviar imagem</span>
						<input id="enviar_foto" style="display: none;" name="Filedata" type="file" />
					</li>						
	
					<li>
						<input type="submit" value="Enviar" id="enviar" class="btEnviar" />
					</li>
					
				</ul>
				
			</form>

			</div>
		
		</div>
					
			
			<!-- FIM DO QUADRO -->
	
	</div>
	
</div>

</body>
</html>
